# 基础镜像
FROM openjdk:8
# 环境变量
ENV APP_HOME=/apps
# 创建容器默认进入的目录
WORKDIR $APP_HOME
# 复制jar包到容器中
COPY ./deliveryaddress_server_10500-0.0.1-SNAPSHOT.jar ./deliveryaddress_server.jar
# 暴露端口
EXPOSE 10500
# 启动命令
ENTRYPOINT ["java","-jar","-Xms100m","-Xmx100m"]
CMD ["deliveryaddress_server.jar"]